package main

import (
	"fmt"
	"golang.org/x/sys/windows"
	"time"
)

func main() {
	go func(name string) {
		fmt.Printf("01[%d]你好， %s\n", windows.GetCurrentThreadId(), name)
	}("小明")

	go func(name string) {
		fmt.Printf("02[%d]你好， %s\n", windows.GetCurrentThreadId(), name)
	}("李磊")

	fmt.Printf("[%d]你好, 主线程\n", windows.GetCurrentThreadId())
	time.Sleep(1000)
}
